#encoding: utf-8

# 登陆验证表单时需要设置secret key
import os
# 重启服务器需要重新登录，输入密码重新登录，SECRET_KEY每次重启时会发生变化
# SECRET_KEY = os.urandom(24)

SECRET_KEY = "hhkfiihkj"

DEBUG = True

DB_USERNAME = 'root'
DB_PASSWORD = 'root'
DB_HOST = '127.0.0.1'
DB_PORT = '3306'
DB_NAME = 'liuhu'


DB_URI = 'mysql+pymysql://%s:%s@%s:%s/%s?charset=utf8' % (DB_USERNAME,DB_PASSWORD,DB_HOST,DB_PORT,DB_NAME)

# 设置False，数据改变不发送信息
SQLALCHEMY_DATABASE_URI = DB_URI
SQLALCHEMY_TRACK_MODIFICATIONS = False

#
BACK_USER_ID = 'a'
# FRONT_USER_ID = 'b'


# 发送者邮箱服务器的地址
#发送qq的服务器地址
MAIL_SERVER = "smtp.qq.com"
# #QQ邮箱不支持非加密方式发送邮件
#AIL_USE_TLS 端口号是：587
# MAIL_USE_SSL端口号是：465
MAIL_PORT = '587'
MAIL_USE_TLS = 'True'
# MAIL_USE_SSL =
# MAIL_DEBUG = 与DEBUG = True相同
MAIL_USERNAME = '563667579@qq.com'
# QQ的授权码
MAIL_PASSWORD = "wxkcqztumorrbbhd"
MAIL_DEFAULT_SENDER = "563667579@qq.com"
#

# # 阿里大于相关配置
# ALIDAYU_APP_KEY = '23709557'
# ALIDAYU_APP_SECRET = 'd9e430e0a96e21c92adacb522a905c4b'
# ALIDAYU_SIGN_NAME = '神毓逍遥'
# ALIDAYU_TEMPLATE_CODE = 'SMS_68465012'


## UEditor的相关配置
# UEDITOR_UPLOAD_TO_QINIU = True
# UEDITOR_QINIU_ACCESS_KEY = "M4zCEW4f9XPanbMN-Lb9O0S8j893f0e1ezAohFVL"
# UEDITOR_QINIU_SECRET_KEY = "7BKV7HeEKM3NDJk8_l_C89JI3SMmeUlAIatzl9d4"
# UEDITOR_QINIU_BUCKET_NAME = "hyvideo"
# UEDITOR_QINIU_DOMAIN = "http://7xqenu.com1.z0.glb.clouddn.com/"


# # flask-paginate的相关配置
# PER_PAGE = 10
#
# # celery相关的配置
# CELERY_RESULT_BACKEND = "redis://127.0.0.1:6379/0"
# CELERY_BROKER_URL = "redis://127.0.0.1:6379/0"

